﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Commons.IO
{
	public interface IDataSource<T> : IDisposable
	{
		void Close();

		Task<T> PullAsync(CancellationToken token, IProgress<ProgressEventArgs> progress);
	}
}
